﻿using UnityEngine;
using System.Collections;

public class CameraMove : MonoBehaviour {
    public GameObject player;
    private Vector3 offset;
    private Vector3 startOffset;
	// Use this for initialization
	void Start () {
        offset = transform.position;
        startOffset = player.transform.position;
	}
	
	// Update is called once per frame
	void LateUpdate () {
        transform.position = player.transform.position - startOffset + offset;
        
	}
}
